package org.example.myleet.p393;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(solution.validUtf8(new int[]{197,130,1}));
        Assert.isTrue(solution.validUtf8(new int[]{235,140,141}));
        Assert.isTrue(solution.validUtf8(new int[]{195,140,4}));
        Assert.isTrue(!solution.validUtf8(new int[]{235,140,141,150}));
        Assert.isTrue(!solution.validUtf8(new int[]{235,140,4}));
        Assert.isTrue(!solution.validUtf8(new int[]{235,140,141,150,195}));
        Assert.isTrue(!solution.validUtf8(new int[]{255}));
        Assert.isTrue(!solution.validUtf8(new int[]{248,130,130,130}));
        Assert.isTrue(!solution.validUtf8(new int[]{250,145,145,145,145}));
    }
}
